.class public Lcom/netease/newsreader/util/FormFile;
.super Ljava/lang/Object;
.source "FormFile.java"


# instance fields
.field private Formnames:Ljava/lang/String;

.field private contentType:Ljava/lang/String;

.field private data:[B

.field private fileName:Ljava/lang/String;

.field private inStream:Ljava/io/InputStream;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    const-string v0, "application/octet-stream"

    iput-object v0, p0, Lcom/netease/newsreader/util/FormFile;->contentType:Ljava/lang/String;

    .line 18
    return-void
.end method

.method public constructor <init>(Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter "inStream"
    .parameter "fileName"
    .parameter "formnames"
    .parameter "contentType"

    .prologue
    .line 27
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    const-string v0, "application/octet-stream"

    iput-object v0, p0, Lcom/netease/newsreader/util/FormFile;->contentType:Ljava/lang/String;

    .line 29
    iput-object p1, p0, Lcom/netease/newsreader/util/FormFile;->inStream:Ljava/io/InputStream;

    .line 30
    iput-object p2, p0, Lcom/netease/newsreader/util/FormFile;->fileName:Ljava/lang/String;

    .line 31
    iput-object p3, p0, Lcom/netease/newsreader/util/FormFile;->Formnames:Ljava/lang/String;

    .line 32
    iput-object p4, p0, Lcom/netease/newsreader/util/FormFile;->contentType:Ljava/lang/String;

    .line 33
    return-void
.end method

.method public constructor <init>([BLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter "data"
    .parameter "fileName"
    .parameter "formnames"
    .parameter "contentType"

    .prologue
    .line 20
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    const-string v0, "application/octet-stream"

    iput-object v0, p0, Lcom/netease/newsreader/util/FormFile;->contentType:Ljava/lang/String;

    .line 22
    iput-object p1, p0, Lcom/netease/newsreader/util/FormFile;->data:[B

    .line 23
    iput-object p2, p0, Lcom/netease/newsreader/util/FormFile;->fileName:Ljava/lang/String;

    .line 24
    iput-object p3, p0, Lcom/netease/newsreader/util/FormFile;->Formnames:Ljava/lang/String;

    .line 25
    iput-object p4, p0, Lcom/netease/newsreader/util/FormFile;->contentType:Ljava/lang/String;

    .line 26
    return-void
.end method


# virtual methods
.method public getContentType()Ljava/lang/String;
    .locals 1

    .prologue
    .line 59
    iget-object v0, p0, Lcom/netease/newsreader/util/FormFile;->contentType:Ljava/lang/String;

    return-object v0
.end method

.method public getData()[B
    .locals 1

    .prologue
    .line 35
    iget-object v0, p0, Lcom/netease/newsreader/util/FormFile;->data:[B

    return-object v0
.end method

.method public getFileName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lcom/netease/newsreader/util/FormFile;->fileName:Ljava/lang/String;

    return-object v0
.end method

.method public getFormnames()Ljava/lang/String;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/netease/newsreader/util/FormFile;->Formnames:Ljava/lang/String;

    return-object v0
.end method

.method public getInStream()Ljava/io/InputStream;
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Lcom/netease/newsreader/util/FormFile;->inStream:Ljava/io/InputStream;

    return-object v0
.end method

.method public setContentType(Ljava/lang/String;)V
    .locals 0
    .parameter "contentType"

    .prologue
    .line 62
    iput-object p1, p0, Lcom/netease/newsreader/util/FormFile;->contentType:Ljava/lang/String;

    .line 63
    return-void
.end method

.method public setData([B)V
    .locals 0
    .parameter "data"

    .prologue
    .line 38
    iput-object p1, p0, Lcom/netease/newsreader/util/FormFile;->data:[B

    .line 39
    return-void
.end method

.method public setFileName(Ljava/lang/String;)V
    .locals 0
    .parameter "fileName"

    .prologue
    .line 50
    iput-object p1, p0, Lcom/netease/newsreader/util/FormFile;->fileName:Ljava/lang/String;

    .line 51
    return-void
.end method

.method public setFormnames(Ljava/lang/String;)V
    .locals 0
    .parameter "formnames"

    .prologue
    .line 56
    iput-object p1, p0, Lcom/netease/newsreader/util/FormFile;->Formnames:Ljava/lang/String;

    .line 57
    return-void
.end method

.method public setInStream(Ljava/io/InputStream;)V
    .locals 0
    .parameter "inStream"

    .prologue
    .line 44
    iput-object p1, p0, Lcom/netease/newsreader/util/FormFile;->inStream:Ljava/io/InputStream;

    .line 45
    return-void
.end method
